#include "ChineseGameFactory.h"
#include "ChineseChess.h"
#include "ChineseChessBoard.h"
#include "ChineseGameRule.h"
#include "../framework/Player.h"
#include "../framework/ChessProtoManager.h"
#include "../framework/ChineseChessBoardImp.h"
#include <iostream>
ChineseGameFactory::ChineseGameFactory(){
}
ChessBoard* ChineseGameFactory::createChessBoard(){
    ChessProtoManager<ChineseChess>::registerAllChess("chinesechess.xml");
    ChessBoard* board = new ChineseChessBoard(new ChineseChessBoardImp("chinesechessboard.xml"));
    board->initialBoard();
    return board;
}
Player* ChineseGameFactory::createPlayer(){
    return new Player;
}
GameRule* ChineseGameFactory::createGameRule(){
    return new ChineseGameRule;
}
